package io.itit.ecp.admin.provide.action.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.itit.grass.core.provide.action.resp.UserResp;
import io.itit.grass.dict.starter.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString
@ApiModel("通过授权码获取Access_token响应结果")
public class CommonLoginTokenResp implements Serializable {

    private static final long serialVersionUID = 1L;

//    {
//        "access_token": "7fde79b8-9fef-4459-9c62-9c0a3384fc98",
//            "token_type": "bearer",
//            "refresh_token": "297c76a4-ddd9-4a4c-8a9e-adb26025bce3",
//            "expires_in": 1799,
//            "scope": "all"
//    }

    @ApiModelProperty("访问token值")
    private String access_token;

    private String token_type;

    @ApiModelProperty("数据范围名称")
    private String refresh_token;

    @ApiModelProperty("访问token剩余过期秒数")
    private Long expires_in;

    private String scope;

}
